libostreetest: include libtest.sh from srcdir, not builddir
authorSimon McVittie <smcv@debian.org>
Sun, 12 Jun 2016 13:21:19 +0000 (09:21 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 13 Jun 2016 00:23:04 +0000 (00:23 +0000)
Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #337
Approved by: cgwalters

tests/libostreetest.c

index aff6c1e82703b512e96be5d4bde6a85ef31a4cf9..81f743e9e23d299c2117953e16409fbcd2af0293 100644 (file)
@@ -32,7 +32,7 @@ gboolean
 ot_test_run_libtest (const char *cmd, GError **error)
 {
   gboolean ret = FALSE;
-  const char *builddir = g_getenv ("G_TEST_BUILDDIR");
+  const char *srcdir = g_getenv ("G_TEST_SRCDIR");
   int estatus;
   g_autoptr(GPtrArray) argv = g_ptr_array_new ();
   g_autoptr(GString) cmdstr = g_string_new ("");
@@ -41,7 +41,7 @@ ot_test_run_libtest (const char *cmd, GError **error)
   g_ptr_array_add (argv, "-c");
 
   g_string_append (cmdstr, "set -xeuo pipefail; . ");
-  g_string_append (cmdstr, builddir);
+  g_string_append (cmdstr, srcdir);
   g_string_append (cmdstr, "/tests/libtest.sh; ");
   g_string_append (cmdstr, cmd);